C++的final關鍵字 VC2012已經支持final關鍵字了,fianl關鍵字可以用於以下兩種情況: 1. 一個類或結構體比希望被繼承。 class Base final { }; // 錯誤,Derive不能 ...